ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  Month( ) 

Month(Date)

The Month function returns the number of the current month using using any valid date expression as an argument.

You can also use the Date and Now functions as the argument.

Code:
<% =Month(Date) %>

Output:
3

Code:
<% =Month("June 26, 1943") %>

Output:
6